Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix nightly ci #4816

Merged
merged 1 commit into from
Dec 23, 2024
Merged

fix nightly ci #4816

merged 1 commit into from
Dec 23, 2024

Conversation

Icxolu
Copy link
Contributor

@Icxolu Icxolu commented Dec 23, 2024

No description provided.

@Icxolu Icxolu added the CI-skip-changelog Skip checking changelog entry label Dec 23, 2024
@LilyFoote LilyFoote added this pull request to the merge queue Dec 23, 2024
Merged via the queue into PyO3:main with commit 117d986 Dec 23, 2024
47 checks passed
@Icxolu Icxolu deleted the ci/fix-nightly branch December 23, 2024 18:44
clin1234 pushed a commit to clin1234/pyo3 that referenced this pull request Dec 24, 2024
davidhewitt pushed a commit that referenced this pull request Jan 3, 2025
davidhewitt pushed a commit that referenced this pull request Jan 11, 2025
@hoodmane
Copy link
Contributor

hoodmane commented Jan 13, 2025

This PR broke nightlies before December 1st 2024. Ideally it would be nice if patch version bumps didn't break old compiler versions, though for nightlies it might be unreasonable to ask. Still @davidhewitt maybe someone should check that this isn't a regression on stable? Or you probably have CI checks for that?

@hoodmane
Copy link
Contributor

I'm not sure exactly what's going wrong though we should be on the not(ptr_eq) branch...

@Icxolu
Copy link
Contributor Author

Icxolu commented Jan 13, 2025

I'm not sure exactly what's going wrong though we should be on the not(ptr_eq) branch...

It could be an unlucky edge case that you use a nightly from the 1.85 window, before fn_addr_eq was introduced.

Ideally it would be nice if patch version bumps didn't break old compiler versions, though for nightlies it might be unreasonable to ask. Still @davidhewitt maybe someone should check that this isn't a regression on stable? Or you probably have CI checks for that?

True, we try our best to support a wide range or compiler versions, but we can only check so much. Current MSRV is 1.63, which is also checked in CI. So on a stable compiler everything should work.

@hoodmane
Copy link
Contributor

Yeah that makes sense, can't test unlucky nightly ranges. Thanks @Icxolu!

@hoodmane
Copy link
Contributor

hoodmane commented Jan 13, 2025

Well, fn_addr_eq exists in our compiler but it is behind an unstable library feature ptr_fn_addr_eq. rust-lang/rust#133678 made ptr_fn_addr_eq on by default. I'm not sure why the cfg doesn't exactly match the feature.

@Icxolu
Copy link
Contributor Author

Icxolu commented Jan 13, 2025

I'm not sure why the cfg doesn't exactly match the feature.

These are our own cfgs for pyo3 that we use to conditionally enable functions that depend on compilers version. I think the unlucky case here is that fn_addr_eq will stabilize in 1.85, but you are using a nightly of the same version from before the stabilization. It should work correctly for all nightlies after the stabilization and for the 1.85 stable release as well, once that lands.

JeanArhancet pushed a commit to JeanArhancet/pyo3 that referenced this pull request Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants